/* Twikoo 评论样式 */

@font-face {
  font-family: "tzy";
  /* 字体名自定义即可 */
  /* src: url('https://cdn.jsdelivr.net/gh/tzy13755126023/BLOG_SOURCE/font/ZhuZiAWan.woff2'); */
  src: url("https://fonts.googlefonts.cn/css?family=Open+Sans");
  /* 字体文件路径 */
  font-display: swap;
}

[data-theme="dark"] #web_bg:before,
[data-theme="dark"] #footer:before,
[data-theme="dark"] #page-header:before {
  background-color: none;
}

::-webkit-scrollbar {
  height: 0;
}

body,
.gitcalendar {
  font-family: tzy !important;
}

.tk-input .el-textarea__inner {
  min-height: 120px !important;
}

#twikoo .OwO-body {
  max-width: 100% !important;
}

#twikoo .OwO .OwO-body .OwO-items:nth-child(1),
#twikoo .OwO .OwO-body .OwO-items:nth-child(4) {
  max-height: 360px !important;
}

#article-container h1:before,
#article-container h2:before,
#article-container h3:before,
#article-container h4:before,
#article-container h5:before,
#article-container h6:before,
#post .post-outdate-notice:before,
.fontawesomeIcon,
.note:not(.no-icon)::before,
hr:before {
  display: inline-block;
  font-weight: 600;
  font-style: normal;
  font-variant: normal;
  font-family: "Font Awesome 5 Free";
  text-rendering: auto;
  -webkit-font-smoothing: antialiased;
}
#article-container h1:before,
#article-container h2:before,
#article-container h3:before,
#article-container h4:before,
#article-container h5:before,
#article-container h6:before {
  position: absolute;
  color: #f47466;
  /* 回形针 */
  content: "\f0c1";
  line-height: 1;
  -webkit-transition: all 0.2s ease-out;
  -moz-transition: all 0.2s ease-out;
  -o-transition: all 0.2s ease-out;
  -ms-transition: all 0.2s ease-out;
  transition: all 0.2s ease-out;
  /* 若要使用风车效果，请去掉下面的注释 */
  content: "\f863";
  animation: avatar_turn_around 1s linear infinite;
}
#article-container h1 {
  padding-left: 1.4rem;
}

#article-container h1 code {
  font-size: 1rem;
}

#article-container h1:before {
  margin-left: -1.3rem;
  top: calc(50% - 0.5rem);
  font-size: 1rem;
}

#article-container h1:hover {
  padding-left: 1.6rem;
}

#article-container h2 {
  padding-left: 1.3rem;
}

#article-container h2 code {
  font-size: 0.9rem;
}

#article-container h2:before {
  margin-left: -1.4rem;
  top: calc(50% - 0.45rem);
  font-size: 0.9rem;
}

#article-container h2:hover {
  padding-left: 1.5rem;
}

#article-container h3 {
  padding-left: 1.2rem;
}

#article-container h3 code {
  font-size: 0.8rem;
  top: calc(50% - 0.4rem);
}

#article-container h3:before {
  margin-left: -1.2rem;
  top: calc(50% - 0.4rem);
  font-size: 0.8rem;
}

#article-container h3:hover {
  padding-left: 1.4rem;
}

#article-container h4 {
  padding-left: 1.1rem;
}

#article-container h4 code {
  font-size: 0.7rem;
}

#article-container h4:before {
  margin-left: -1rem;
  top: calc(50% - 0.35rem);
  font-size: 0.7rem;
}

#article-container h4:hover {
  padding-left: 1.3rem;
}

#article-container h5 {
  padding-left: 1rem;
}

#article-container h5 code {
  font-size: 0.6rem;
}

#article-container h5:before {
  margin-left: -0.8rem;
  top: calc(50% - 0.3rem);
  font-size: 0.6rem;
}

#article-container h5:hover {
  padding-left: 1.2rem;
}

#article-container h6 {
  padding-left: 1rem;
}

#article-container h6 code {
  font-size: 0.6rem;
}

#article-container h6:before {
  margin-left: -0.8rem;
  top: calc(50% - 0.3rem);
  font-size: 0.6rem;
}

#article-container h6:hover {
  padding-left: 1.2rem;
}

#article-container ol li:hover:before {
  -webkit-transform: rotate(360deg);
  -moz-transform: rotate(360deg);
  -o-transform: rotate(360deg);
  -ms-transform: rotate(360deg);
  transform: rotate(360deg);
}

/* 公众号 Start */

[data-theme="light"] #aside-content .card-widget#card-wechat {
  /* background: #49b1f5 !important; */
}

#aside-content .card-widget#card-wechat {
  display: flex;
  justify-content: center;
  align-content: center;
  width: 100%;
  padding: 0;
  cursor: pointer !important;
  border: none;
  height: 110px;
  background-color: #fff;
}

/* 如果你设置了aside 的 mobile 为 false，记得放开下面这段注释；
 如果你设置了aside 的 mobile 为 true ，不需要改动。 */

/* @media screen and (max-width: 768px) {
  #aside-content .card-widget#card-wechat {
      display: none !important;
  }
} */

@media screen and (min-width: 1300px) {
  #aside-content .card-widget {
    margin-top: 1rem;
  }
}

#flip-wrapper {
  -webkit-perspective: 1000;
  perspective: 1000;
  position: relative;
  width: 100%;
  height: 110px;
  z-index: 1;
}

#flip-wrapper:hover #flip-content {
  -webkit-transform: rotateY(180deg);
  transform: rotateY(180deg);
}

#flip-content {
  width: 100%;
  height: 100%;
  -webkit-transform-style: preserve-3d;
  transform-style: preserve-3d;
  transition: cubic-bezier(0, 0, 0, 1.29) 0.3s;
}

.face {
  position: absolute;
  width: 100%;
  height: 100%;
  -webkit-backface-visibility: hidden;
  backface-visibility: hidden;
  background: url(../images/gongzhonghao.jpg) center center no-repeat;
  background-size: 110%;
}

.back.face {
  display: block;
  -webkit-transform: rotateY(180deg);
  transform: rotateY(180deg);
  box-sizing: border-box;
  background: url(../images/qrCode.jpg) center center no-repeat;
  background-size: 110%;
}
